
<body ng-app="theApp">
<div style='XXXwidth:777px'>
    
    <div ng-controller='authController' class='smooth-panel'>
        <form>
            <div ng-hide="lObj.user">
                Email <input type="email" ng-model="email" />
                Password <input type="password" ng-model="password" />
                <button class='btn btn-default btn-xs active' type="submit" ng-click="signIn()">Login</button>
                <a ng-href="#/create/user" class="btn btn-default btn-xs active">Register</a>
            </div>
            <div ng-show="lObj.user">
                Logged on as <b>{{ lObj.user.email }}</b> <b><i>{{ loggedUserinfo.firstname }} {{ loggedUserinfo.lastname }}</i></b>
                <button class='btn btn-default btn-xs active' type="submit" ng-click="signOut()">Logout</button>
            </div>
        </form>
    </div>
    
    <div class='top'>
        <div class='left'>
            <table cellpadding="0" cellspacing="0">
                <tr ng-repeat="item in ['Home', 'About', 'Help','All']">
                    <td>
                        <a ng-href="#/{{item | lowercase}}" class="plain"><div class="smooth-panel">{{item}}</div></a>
                    </td>
                </tr> 
                <tr>
                    <td>
                        <div ng-controller='fieldsController' class=" smooth-panel" >    
                            <b>Fields</b>    <br/>
                            <input ng-model="fieldFilter" placeholder="Search..."/>    
                            <div ng-repeat="e in fieldsall | filter:fieldFilter">        
                                <a ng-href="#/field/{{e.id}}" > &nbsp;  &nbsp; {{ e.name }} &nbsp;</a>    
                            </div>
                    </div>                
                    </td>
                </tr>
            </table>
        </div>
        <div class='left'>
            <!-- &nbsp; &nbsp;           -->
        </div>
        <div class='left'>
            <div class="container">
                <div ng-view></div>
            </div>
        </div>
        <div class='right'>            
        </div>
    </div>   
    <div style='clear:both;'>            
    </div>
    <hr/>
    <div>         
        <footer>
            (C) 2014 <a href='http://starshineworks.com'>SSW</a>
        </footer>
    </div>
    </div>
</body>

